import { createApp } from 'vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import App from './App.vue'
import router from './router'
import store from './store'
import watermark from 'watermark-h5'

console.info(import.meta.env);

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'


// 深色模式
import 'element-plus/theme-chalk/dark/css-vars.css';
// 修改部分深色模式
import './style/dark.scss';
// 引用iconfont
import './iconfont/iconfont.css';
//公共css
import './style/index.scss';

// 导入mock数据
import './mock';


watermark.init({
    parentDomName: 'body',
    show: true,
    color: 'rgba(0, 0, 0, 0.1)',
    title: '呼啦鸽电商管理平台',
    width: 200,
    height: 200,
    fontNum: 15,
    rotate: -25,
    zIndex: 9999
})
const app = createApp(App)
import api from './api/index'
app.config.globalProperties.$api = api;
app.use(store);
app.use(router);

app.use(ElementPlus,{
    size: 'default',
    locale: zhCn,
    zIndex: 3000
});



app.mount('#app');
